package com.yzh.wanandroid.utils

/*        loading 相关         */
const val EMPTY = 0           // 没有状态
const val LOADING = 1         // loading 状态
const val SUCCESS = 2          // 数据加载成功状态
const val ERROR = 3           // 异常以及错误状态

/*         fragment 的Tab 页  */
const val PAGER_HOME = 0
const val PAGER_SQUARE = 1
const val PAGER_PUBLIC = 2
const val PAGER_PROJECT = 3

const val COLLECTIONS_WEBSITE = "lg/collect"
const val UNCOLLECTIONS_WEBSITE = "lg/uncollect"
const val ARTICLE_WEBSITE = "article"
const val TODO_WEBSITE = "lg/todo"
const val COIN_WEBSITE = "lg/coin"
const val COOKIE_NAME = "Cookie"

const val SAVE_USER_LOGIN_KEY = "user/login"
const val SAVE_USER_REGISTER_KEY = "user/register"
const val SET_COOKIE_KEY = "set-cookie"

const val MAX_CACHE_SIZE: Long = 1024 * 1024 * 50 // 50M 的缓存大小


const val DEFAULT_TIMEOUT: Long = 15


const val IS_LOGIN = "is_login"
const val LEVEL = "level"
const val RANK = "rank"
const val USERNAME = "username"

// 夜间模式
const val NIGHT_MODE = "night_model"


const val LOGOUT_LOADING = 1
const val LOGOUT_SUCCESS = 2
const val LOGOUT_ERROR = 3
